Reference for Bava Batra 214:9
מקבל עליו מקום גדר כו': תאנא חריץ מבחוץ ובן חריץ מבפנים וזה וזה אחורי גדר
<b><i>GEMARA</i></b>. R. Hiyya b. Abba said in the name of R. Johanan: The buyer takes the poorer [side] of it.<span class="x" onmousemove="('comment',' Of the field. The seller, being the previous possessor, is entitled to choose the fertile, and better side. ');"><sup>27</sup></span> Said R. Hiyya b. Abba to R. Johanan: Surely we have learned that a compromise<span class="x" onmousemove="('comment',' Which implies that the buyer is not to be at a disadvantage and is to have a share which is as good as that of the seller How, then, could R. Johanan state that the buyer must take the worst part? ');"><sup>28</sup></span> was to be made between them? — He replied unto him: While you were [engaged in] eating date-berries in Babylon,<span class="x" onmousemove="('comment',' I.e., engaged in worldly pleasures and neglecting the study of the Torah. [Hiyya b. Abba was born at Kafri in Babylonia, whence he came to Palestine at a somewhat advanced age.] ');"><sup>29</sup></span> I expounded [this] with the aid of the concluding clause. For in the concluding clause it is taught: [IF ONE SAYS]. 'I SELL YOU HALF OF IT ON THE SOUTHERN SIDE', A COMPROMISE IS MADE BETWEEN THEM AND HE TAKES ITS SOUTHERN HALF. But why, [according to your reasoning,] should a compromise be made between them? Surely he [explicitly] said to him, 'Half of it on the southern side'!<span class="x" onmousemove="('comment',' How, then, does a compromise come in? Since the seller specified the southern side, that side should go to the buyer! ');"><sup>30</sup></span> But [you must say that the expression there refers] to the price.<span class="x" onmousemove="('comment',' By saying, 'the southern side', not the actual spot was meant but the value of that spot in any part of the field. ');"><sup>31</sup></span> here also [it must be assumed that the expression used refers] to the price.<span class="x" onmousemove="('comment',' The compromise consists in this, that the buyer gets land equal to the full value of half the field, while the seller has the choice of giving of the land on any side, even on the worst, provided the value of it is not less than half the price of the entire field. ');"><sup>32</sup></span> HE MUST UNDERTAKE [TO SUPPLY] THE SPACE FOR THE WALL etc. It was taught: The bigger trench is without and the smaller one is within,<span class="x" onmousemove="('comment',' Between the wall and the outer trench. ');"><sup>33</sup></span> and both [are made] behind the wall [on its outer side]